<?php
//全局bootstrap事件
date_default_timezone_set('Asia/Shanghai');

// 加载全局函数
echo "加载全局函数" . PHP_EOL;
$functionsFilePath = EASYSWOOLE_ROOT . '/Lib/functions.php';
if (file_exists($functionsFilePath)) {
    require_once $functionsFilePath;
} else {
    die('缺少全局函数文件' . $functionsFilePath . PHP_EOL);
}

echo "加载Loader" . PHP_EOL;
$loaders = include_once(EASYSWOOLE_ROOT . '/Lib/Loaders/Sort.php');
foreach ($loaders as $loader) {
    $loader::handle();
}

defined('ENVIRONMENT') || define('ENVIRONMENT', config('env.ENVIRONMENT'));
